<?php

/**
 * UniversidadesBeca form base class.
 *
 * @method UniversidadesBeca getObject() Returns the current form's model object
 *
 * @package    auip
 * @subpackage form
 * @author     Your name here
 * @version    SVN: $Id: sfDoctrineFormGeneratedTemplate.php 29553 2010-05-20 14:33:00Z Kris.Wallsmith $
 */
abstract class BaseUniversidadesBecaForm extends BaseFormDoctrine
{
  public function setup()
  {
    $this->setWidgets(array(
      'id_beca'        => new sfWidgetFormInputHidden(),
      'id_universidad' => new sfWidgetFormInputHidden(),
    ));

    $this->setValidators(array(
      'id_beca'        => new sfValidatorChoice(array('choices' => array($this->getObject()->get('id_beca')), 'empty_value' => $this->getObject()->get('id_beca'), 'required' => false)),
      'id_universidad' => new sfValidatorChoice(array('choices' => array($this->getObject()->get('id_universidad')), 'empty_value' => $this->getObject()->get('id_universidad'), 'required' => false)),
    ));

    $this->widgetSchema->setNameFormat('universidades_beca[%s]');

    $this->errorSchema = new sfValidatorErrorSchema($this->validatorSchema);

    $this->setupInheritance();

    parent::setup();
  }

  public function getModelName()
  {
    return 'UniversidadesBeca';
  }

}
